//
//  ScanTableViewCell.m
//  CloudMD
//
//  Created by apple on 16/2/18.
//  Copyright (c) 2016年 HuaZhengInfo. All rights reserved.
//

#import "ScanTableViewCell.h"

@implementation ScanTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self buildUI];
    }
    return self;
}


- (void)buildUI{

    UIButton * scanBtn = [GDFactory creatUIButtonWithFrame:CGRectMake(10, 10, 20, 20) backImage:@"erweima_icon" title:nil titleLableColcor:nil titleLabelFont:nil];
    [self.contentView addSubview:scanBtn];
    UILabel * scanLabel = [GDFactory creatUILabelWithFrame:CGRectMake(CGRectGetMaxX(scanBtn.frame), 10, 100, 20) text:@"点击扫描" textColor:[UIColor lightGrayColor] textFont:[UIFont systemFontOfSize:18]];
    [self.contentView addSubview:scanLabel];
    
    // 细线
    UIView * xiView = [GDFactory creatUIViewWithFrame:CGRectMake(5, CGRectGetMaxY(scanBtn.frame) + 5, self.frame.size.width - 10, 0.5) backColor:[UIColor grayColor]];
    [self.contentView addSubview:xiView];
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
